% !TEX TS-program = lualatex
% !TEX encoding = UTF-8

% This is a simple template for a LuaLaTeX document using gregorio scores.

\documentclass[letterpaper,12pt]{article} % use larger type; default would be 10pt

% usual packages loading:
%\usepackage{luatextra}
%\usepackage{graphicx} % support the \includegraphics command and options
\usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots.
\geometry{letterpaper} % or letterpaper (US) or a5paper or....
\usepackage{gregoriotex} % for gregorio score inclusion
\usepackage{fullpage} % to reduce the margins
\usepackage{anysize} % for marginsize
\usepackage{multicol} % for columns
\usepackage{lettrine} % for drop caps
%\usepackage{wrapfig} % for wrapping figures -- can't get it to work with gregorio
\usepackage{fancyhdr}

% choose the language of the document here
\usepackage[latin,american]{babel}

% If you use usual TeX fonts, here is a starting point:
%\usepackage{palatino}

\input{../gsp-spaces}

\usepackage[garamond]{../mypackage}

\setgrefactor{17}
%\usepackage{fontspec}
% to change the font to something better, you can install the kpfonts package (if not already installed). To do so
% go open the "TeX Live Manager" in the Menu Start->All Programs->TeX Live 2010
%\fontspec[Numbers=OldStyle]{Linux Libertine O}
%\def\greinitialformat#1{{\fontsize{37}{37}\selectfont #1}}
%small > footnotesize > scriptsize > tiny

\marginsize{40pt}{40pt}{25pt}{35pt}
\pagestyle{fancy} % no header or footers
\setlength\headheight{15pt}
\setlength{\columnsep}{18pt}
\setlength{\columnseprule}{.4pt}

\let\oldheadrulewidth\headrulewidth
\renewcommand\headrulewidth{0pt}
\setgrefactor{15}

\def\heading{Veni Creátor Spíritus}
\def\antfilename{hymn-VeniCreatorSpiritus}
\def\firstinitial{T}
\def\anttranslation{%
}
\def\afterant{}

% here we begin the document
\begin{document}
% The title:
\medskip
\begin{center}{\huge \heading.}\end{center}
%\smallskip
%\begin{center}\textbf{Alio modo, juxta morem Romanum.}\end{center}
\selectlanguage{latin}

% Here we set the initial font. Change 43 if you want a bigger initial.
\def\greinitialformat#1{%
{\fontsize{40}{40}\selectfont #1}%
}

% We set VII above the initial.
{\def\annot{\small{8.}}
\def\annottwo{}
\setinitialspacing{\firstinitial}

% We type a text in the top right corner of the score:
%\commentary{{\small \emph{Cf. Is. 30, 19 . 30 ; Ps. 79}}}

% and finally we include the score. The file must be in the same directory as this one.
\large \includescore{\antfilename}}
%\renewcommand\headrulewidth{\oldheadrulewidth}
%\chead{\addfontfeature{Numbers=Lining}%
%\footnotesize\heading.}
\afterant
\medskip
\noindent{}
\Vbar{}. Emítte Spíritum tuum et creabúntur. (\textit{T. P.} Allelúia.) \\
\Rbar{}. Et renovábis fáciem terræ. (\textit{T. P.} Allelúia.) \\
\medskip{}
\dropcap{latin}{Deus, qui (hodiérna die) corda fidélium Sancti Spíritus illustratióne docuísti~:~\dag{} da nobis in eódem Spíritu recta sápere,~\greheightstar{} et de ejus semper consolatióne gaudére.  Per Christum Dóminum nostrum.}
%\selectlanguage{american}
%\begin{quote}
%\selectlanguage{american}
%\begin{multicols}{2}
%{\anttranslation}
%\end{multicols}
%\end{quote}

\end{document}
